package org.finesys.system.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.finesys.common.mp.core.mapper.BaseMapper;
import org.finesys.system.api.entity.SysRole;

import java.util.List;

@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {
    // 通过用户ID，查询角色信息
    List<SysRole> findRolesByUserId(@Param("userId") Long userId);
}
